// -*- coding: utf-8 -*- 
/**
 * Project: Java8InActionT
 * Creator: yanking
 * Create time: 2022-01-26 11:10
 * IDE: IntelliJ IDEA
 * Introduction:
 */
package com.CustomerCollector;


import org.junit.jupiter.api.Test;

import java.util.Arrays;
import java.util.List;

public class initData {
    @Test
    public void shout00() {
        List<Student> students =
                Arrays.asList(new Student("1", Student.Course.ENGLISH, 78), new Student("1", Student.Course.LANGUAGE, 71),
                        new Student("1", Student.Course.MATHEMATICS, 82), new Student("2", Student.Course.ENGLISH, 69),
                        new Student("2", Student.Course.LANGUAGE, 66), new Student("2", Student.Course.MATHEMATICS, 46),
                        new Student("3", Student.Course.ENGLISH, 78), new Student("3", Student.Course.LANGUAGE, 88),
                        new Student("3", Student.Course.MATHEMATICS, 100), new Student("4", Student.Course.ENGLISH, 68),
                        new Student("4", Student.Course.LANGUAGE, 84), new Student("4", Student.Course.MATHEMATICS, 90),
                        new Student("5", Student.Course.ENGLISH, 74), new Student("5", Student.Course.LANGUAGE, 59),
                        new Student("5", Student.Course.MATHEMATICS, 87));
        System.out.println(students.stream().collect(new CustomerCollector()));
    }

}
